import request from '@/utils/request';

/** 查询积分列表 */
export function listIntegral(data = {}, params = {}) {
	return request({
		url: '/system/integral/list',
		method: 'GET',
		data,
		params
	})
}

/** 新增积分信息 */
export function addIntegral(data = {}, params = {}) {
	return request({
		url: '/system/integral',
		method: 'POST',
		data,
		params
	})
}

/** 更新积分信息 */
export function updataIntegral(data = {}, params = {}) {
	return request({
		url: '/system/integral',
		method: 'PUT',
		data,
		params
	})
}

/** 删除积分信息 */
export function deleteIntegral(ids) {
	return request({
		url: `/system/integral/${ids}`,
		method: 'DELETE'
	})
}

/** 获取积分信息详情 */
export function findIntegral(id) {
	return request({
		url: `/system/integral/${id}`,
		method: 'GET'
	})
}

/** 导出积分信息 */
export function exportIntegral(data = {}, params = {}) {
	return request({
		url: `/system/integral/export`,
		method: 'GET',
		data,
		params
	})
}


/** 查询老干部列表 */
export function listInformation(data = {}, params = {}) {
	return request({
		url: '/system/information/list',
		method: 'GET',
		data,
		params
	})
}

/** 新增老干部信息 */
export function addInformation(data = {}, params = {}) {
	return request({
		url: '/system/information',
		method: 'POST',
		data,
		params
	})
}

/** 更新老干部信息 */
export function updataInformation(data = {}, params = {}) {
	return request({
		url: '/system/information',
		method: 'PUT',
		data,
		params
	})
}

/** 删除老干部信息 */
export function deleteInformation(ids) {
	return request({
		url: `/system/information/${ids}`,
		method: 'DELETE'
	})
}

/** 获取老干部信息详情 */
export function findInformation(id) {
	return request({
		url: `/system/information/${id}`,
		method: 'GET'
	})
}

/** 导出老干部信息 */
export function exportInformation(data = {}, params = {}) {
	return request({
		url: `/system/information/export`,
		method: 'GET',
		data,
		params
	})
}
